//
//  UIImageView+ImageViewSize.h
//  RM_IM
//
//  Created by zhangzhenyun on 2018/7/19.
//  Copyright © 2018年 user1. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^GetSizeCompletedBlock) (NSError *error, CGFloat scale, CGSize imgSize);

@interface UIImageView (ImageViewSize)

/**
 根据url获取image的大小

 @param urlStr url字符串
 @param completed 完成回调
 */
- (void)getImageSizeWithUrlStr:(NSString *)urlStr
                     completed:(GetSizeCompletedBlock)completed;
@end
